<?php
declare(strict_types=1);

namespace app\admin\service;

use app\admin\model\ResourceCate as ResourceCateModel;

class ResourceCateService
{
    /**
     * 获取社群分类
     * @param array $where
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function getResourceCate($where = [])
    {
        return ResourceCateModel::getResourceCate($where);
    }

    /**
     * 社群分类值
     * @param $where
     * @return mixed
     */
    public static function findResourceCateValue($where)
    {
        return ResourceCateModel::findResourceCateValue($where);
    }
}